package com.digitalchina.lxnsy.viewholder;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.MyExpertVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

import androidx.appcompat.widget.AppCompatTextView;
import android.view.ViewGroup;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：郑皓
 * 创建时间：2017/3/23 11:45:58
 * 修改备注：
 * ================================================
 */

public class MyExpertsListHolder extends BaseViewHolder<MyExpertVO> {

    private AppCompatTextView name;//图片


    public MyExpertsListHolder(ViewGroup parent) {
        super(parent, R.layout.item_my_expert);

        name = $(R.id.name);
    }

    @Override
    public void setData(final MyExpertVO data) {
        super.setData(data);

        name.setText(data.getName() != null ? data.getName() : "");

    }

}
